﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Lavanderia.Entities
{
    public class EGRESOS:BaseEntity
    {
        public int Id { get; set; }

        [Display(Name = "Destino")]
        [Required(ErrorMessage = "El Destinatario es requerido")]
        public string Destino { get; set; }

        [Display(Name = "Descripcion")]
        [Required(ErrorMessage = "La Descripción es requerida")]
        public string Descripcion { get; set; }

        [Display(Name = "Total")]
        [Required(ErrorMessage = "El Total es requerido")]
        public decimal Total { get; set; }

        [Display(Name = "Fecha")]
        [Required(ErrorMessage = "La Fecha es requerida")]
        public DateTime Fecha { get; set; }

        public Nullable<bool> Cancelado { get; set; }
        public Nullable<int> IdTrabajador { get; set; }
        //public string Motivo { get; set; }

        public virtual TRABAJADOR TRABAJADOR { get; set; }
    }
}
